<div class="divmain">
<table width="100%" id="frmaccount_tblinfo" class="tblInfo">
<tr>
<td valign="top" class="width25"  >
<div >
<table class="info" id="frmaccount_info">
<tr>
<td>
<div id="frmaccount_divleft" class="divleft">
<table class="width100" >
       <tr >
         <td align="right" width="43%" ><b>Tên đăng nhập:</b></td>
         <td id="frmaccount_tdaccount">

         <input type="text" readonly="readonly"  id="frmaccount_txtUsername" value="" style="width:180px"/>
         </td>
       </tr>
       <tr>
         <td align="right" width="43%" ><b>Email:</b></td>
         <td><input type="text" maxlength="30" id="frmaccount_txtEmail" class="isEmail" value="" style="width:180px"/></td>
       </tr>
       <tr>
         <td align="right" width="43%" ><b>Địa chỉ:</b></td>
         <td> <input type="text" maxlength="100"  id="frmaccount_txtAddress" value="" style="width:180px"/> </td>
       </tr>
      <tr>
         <td align="right"  ><b>Số điện thoại:</b></td>
         <td >
             <input type="text" maxlength="13" class="isNumber" id="frmaccount_txtPhone" value="" style="width:180px"/>
         </td>
       </tr>
</table>

    <div class="divactionbuton"><input type="hidden" id='frmaccount_hdEdit' value="0"/>
        <input type="hidden" id='frmaccount_hdId' value=""/>
        <button class="save validate btnsave" id="frmaccount_submit" style="float:right" type="button"> Lưu Lại </button>
        </div>
</div>
</td>
</tr>

       <tr>
<td>

</td>
</tr>
</table>
</div>
</td>

<td class="clsmiddle"></td>
<td height="400" valign="top">
<div class="divGrid" id="frmaccount_divGrid">
</div></td>
<td class="clsend"></td>

</tr>
</table>
</div>
<!--<script language="javascript" src="script/js.const.js" >-->
<!--</script>-->

<script language="javascript">
$(document).ready(function () {
    initForm('frmaccount_tblinfo');
    initDivleft();
});

function frmaccount_alertSelect(){
    alert('Vui lòng chọn tài khoản để cập nhật!');
}
function changePass(obj,id){
    var td = $(obj).parent();
    var txt =  "<input type='password' id='frmaccount_txtPass"+id+"' style='width:90px'><img src='adagps.com/images/menu/save.png' style='cursor: pointer;float:right;' onclick='changeConfirm(this,"+id+")' /> <img src='adagps.com/images/menu/undo.png' style='cursor: pointer;float:right;' onclick='undoChange(this,"+id+")' /> ";
    $(td).html(txt);

}
function changeConfirm(obj,id){
    var td = $(obj).parent();
    var newpass = $.trim($('#frmaccount_txtPass'+id).val());
    if(newpass.length<6){
        alert('Vui lòng nhập mật khẩu hơn 5 kí tự');
        return false;
        }
    changeWaiting(0);
    xajax_frmaccount_changePass(newpass,id);
    var imgChange = '<img src="adagps.com/images/menu/changepass.png" title="Đổi mật khẩu" style="cursor: pointer;" class="changePass" onclick="changePass(this,'+id+')" />';
    $(td).html(imgChange);
}

function undoChange(obj,id){
    var td = $(obj).parent();
    var imgChange = '<img src="adagps.com/images/menu/changepass.png" title="Đổi mật khẩu" style="cursor: pointer;" class="changePass" onclick="changePass(this,'+id+')" />';
    $(td).html(imgChange);
}
//xajax_frmaccount_init();
changeWaiting(0);
xajax_frmaccount_loadGrid();

</script>